package com.jgsuniversity.lebmanager.pojo.dao;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jgsuniversity.lebmanager.pojo.enums.JoinStatus;
import com.jgsuniversity.lebmanager.pojo.enums.UserRole;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * ClassName:UserJoin
 * Description:加入社团记录
 */
@Data
@TableName("user_join")
public class UserJoin {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer userId;
    private Integer clubId;
    private UserRole role;         // 可选：成员角色，如 'member', 'admin'
    private JoinStatus status;       // 加入状态，如 'pending', 'approved'
    private LocalDateTime createdAt;
    private Integer isDelete;
}
